import React from 'react';
import icons from './icons';

export default class Icons extends React.Component {
  render() {
    return (
      <span
        dangerouslySetInnerHTML={{ __html: icons[this.props.type] }}
        {...this.props}
      />
    );
  }
}
